﻿<Window x:Class="Xray.Viewer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:graphsharp="clr-namespace:GraphSharp.Controls;assembly=GraphSharp.Controls"
        xmlns:zoom="clr-namespace:WPFExtensions.Controls;assembly=WPFExtensions"
        Title="Xray your IoC" Height="350" Width="525"
        x:Name="root"
        >
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="26*" />
            <ColumnDefinition Width="477*" />
        </Grid.ColumnDefinitions>
        <zoom:ZoomControl Grid.ColumnSpan="2" Margin="0,38,0,0">
            <graphsharp:GraphLayout x:Name="graphLayout"
                                Graph="{Binding ElementName=root,Path=GraphToVisualize}"
                                LayoutAlgorithmType="FR"
                                OverlapRemovalAlgorithmType="FSA"
                                HighlightAlgorithmType="Simple"
                                />
        </zoom:ZoomControl>
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="12,12,0,0" Name="cboLayout" VerticalAlignment="Top" Width="236" Grid.ColumnSpan="2" SelectionChanged="CboLayoutSelectionChanged">
            <ComboBoxItem Content="Circular" />
            <ComboBoxItem Content="Tree" />
            <ComboBoxItem Content="FR" />
            <ComboBoxItem Content="BoundedFR" />
            <ComboBoxItem Content="KK" />
            <ComboBoxItem Content="ISOM" />
            <ComboBoxItem Content="LinLog" />
            <ComboBoxItem Content="EffcientSugiyama" />
            <ComboBoxItem Content="CompoundFDP" />
        </ComboBox>
        <Button Content="Clear" Grid.Column="1" Height="23" HorizontalAlignment="Left" Margin="228,12,0,0" Name="btnClear" VerticalAlignment="Top" Width="75" Click="BtnClearClick" />
    </Grid>
</Window>
